#ifndef CBALL_H_INCLUDED
#define CBALL_H_INCLUDED

#include "CAnimation.h"
#include "CSurface.h"
#include "CScore.h"

//==============================================================================
class CBall {
    public:
        float           X;
        float           Y;

        int             Width;
        int             Height;
        int             AnimWidth;
        int             AnimHeight;

        int             color;

    public:
        bool            Animate;
        int             OldTime;


        bool            Live;
        bool            Focus;
        bool            Select;

    public:
        float           vx;
        float           vy;

	public:
		CBall();

		virtual ~CBall();

	public:
        virtual bool OnInit(int tx, int ty);

        virtual void OnLoop();

		virtual void OnRender(SDL_Surface* Surf_Display, SDL_Surface* image, int color);

		virtual void OnAnimate();

		virtual void SetAnimate();

		void operator= (CBall Buf) {
            color = Buf.color;
            Width = Buf.Width;
            Height = Buf.Height;
            AnimWidth = Buf.AnimWidth;
            AnimHeight = Buf.AnimHeight;
            Live = Buf.Live;
            X = Buf.X;
            Y = Buf.Y;
		}
};

//==============================================================================

#endif // CBALL_H_INCLUDED
